import http from "../http.js";

export function insert(params) {
  return http.post("/phoneCode/insert", params);
}

export function queryByPage(params) {
  return http.post("/phoneCode/queryByPage", params);
}

export function queryById(params) {
  return http.get("/phoneCode/queryById", params);
}
export function login(params) {
  return http.post("/phoneCode/login", params);
}

export function getSMSCode(params) {
  return http.post("/phoneCode/getSMSCode", params);
}

export function getOpenId(params) {
  return http.post("/phoneCode/getOpenId", params);
}

//用户名密码登录
export function pwdLogin(params) {
  return http.post("/phoneCode/pwdLogin", params);
}
